interface O {
    BASE_URL_API: string,
    SOCKET_API: string,
    chatFileUrl: string,
    productImageUrl: string,
    QCURL: string,
    CertificateFile: string,
    QCupload: string,
    CREDupload: string,
    VIDEOURL: string,
    H5_URL: string,
    AREADATA: string,
    DEFAULT_IMAGE_SIZE: number
}
let data : Array<O> = [
    {
        BASE_URL_API: 'http://192.168.1.162:88',
        SOCKET_API: 'ws://192.168.1.162:34567',
        chatFileUrl: 'http://192.168.1.162:88/file/file-view/chatFile/',
        productImageUrl: 'http://192.168.1.162:88/file/file-view/materialImage/',
        QCURL:'http://192.168.1.162:88/file/file-view/qualificationFile/',          // 资质 读取
        CertificateFile:'http://192.168.1.162:88/file/file-view/certificateFile/', //合同 读取
        QCupload:'http://192.168.1.162:88/file/file-qualifications/uploadQualifications', // 上传资质文件
        CREDupload:'http://192.168.1.162:88/file/file-certificate/updateCertificate', // 上传凭证文件
        VIDEOURL:'http://192.168.1.162:88/file/file-view/materialVideo/',
		H5_URL: 'http://192.168.1.187:8080/#',
        AREADATA: 'https://image.icfvip.com/static/city/citys.js',
        DEFAULT_IMAGE_SIZE: 20 * 1024 * 1024
    },
    {
        BASE_URL_API: 'https://api.icfvip.com',
        SOCKET_API: 'wss://im.icfvip.com',
        chatFileUrl: 'https://api.icfvip.com/file/file-view/chatFile/',
        productImageUrl: 'https://api.icfvip.com/file/file-view/materialImage/',
        QCURL:'https://api.icfvip.com/file/file-view/qualificationFile/',
        CertificateFile:'https://api.icfvip.com/file/file-view/certificateFile/',
        QCupload:'https://api.icfvip.com/file/file-qualifications/uploadQualifications', // 上传资质文件
        CREDupload:'https://api.icfvip.com/file/file-certificate/updateCertificate',// 上传凭证文件
        VIDEOURL:'https://api.icfvip.com/file/file-view/materialVideo/',
        H5_URL: 'http://192.168.1.187:8080/#',
        AREADATA: 'https://image.icfvip.com/static/city/citys.js',
        DEFAULT_IMAGE_SIZE: 20 * 1024 * 1024
    },
]
let global: any = {}

if (process.env.NODE_ENV === 'development') global = data[0]
if (process.env.NODE_ENV === 'production') global = data[1]

export default global
